<template>
	<view class="menu-section">
		<view class="menu-title">我的功能</view>
		
		<view class="menu-list">
			<!-- 我的证书 -->
			<view class="menu-item" @click="navigateTo('/packageMy/my/certificates')">
				<view class="menu-item-left">
					<text class="menu-icon certificate-icon">🏆</text>
					<text class="menu-label">我的证书</text>
				</view>
				<text class="menu-arrow">></text>
			</view>
			
			<!-- 证书上传 -->
			<view class="menu-item" @click="navigateTo('/packageMy/my/credential-upload')">
				<view class="menu-item-left">
					<text class="menu-icon upload-icon">📤</text>
					<text class="menu-label">证件上传</text>
				</view>
				<text class="menu-arrow">></text>
			</view>
			
			<!-- 学习记录 -->
			<view class="menu-item" @click="navigateTo('/pages/study/history')">
				<view class="menu-item-content">
					<view class="menu-icon history-icon">📝</view>
					<text class="menu-text">学习记录</text>
				</view>
				<text class="menu-arrow">></text>
			</view>
			
			<!-- 练习统计 -->
			<view class="menu-item" @click="navigateTo('/pages/practice/statistics')">
				<view class="menu-item-content">
					<view class="menu-icon stats-icon">📊</view>
					<text class="menu-text">练习统计</text>
				</view>
				<text class="menu-arrow">></text>
			</view>
			
			<!-- 我的收藏 -->
			<view class="menu-item" @click="navigateTo('/packageMy/my/favorites')">
				<view class="menu-item-left">
					<text class="menu-icon favorite-icon">⭐</text>
					<text class="menu-label">我的收藏</text>
				</view>
				<text class="menu-arrow">></text>
			</view>
			
			<!-- 设置 -->
			<view class="menu-item" @click="navigateTo('/packageMy/my/settings')">
				<view class="menu-item-left">
					<text class="menu-icon settings-icon">⚙️</text>
					<text class="menu-label">设置</text>
				</view>
				<text class="menu-arrow">></text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	name: 'TabBar',
	methods: {
		// 页面导航方法
		navigateTo(url) {
			uni.navigateTo({
				url: url
			});
		}
	}
}
</script>

<style>
.menu-section {
	margin-top: 20rpx;
	background-color: #FFFFFF;
	border-radius: 12rpx;
	padding: 20rpx;
	box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
}

.menu-title {
	font-size: 32rpx;
	font-weight: bold;
	color: #333333;
	padding: 10rpx 0 20rpx;
}

.menu-list {
	display: flex;
	flex-direction: column;
}

.menu-item {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 25rpx 10rpx;
	border-bottom: 1rpx solid #EEEEEE;
}

.menu-item:last-child {
	border-bottom: none;
}

.menu-item-content {
	display: flex;
	flex-direction: row;
	align-items: center;
}

.menu-icon {
	width: 40rpx;
	height: 40rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-right: 20rpx;
	font-size: 32rpx;
}

.menu-text {
	font-size: 28rpx;
	color: #333333;
}

.menu-arrow {
	font-size: 28rpx;
	color: #CCCCCC;
}
</style> 